<div class="PC-head ">
    <div>
        <div>
            <div>
                <a href="{:url('Index/index')}">
                    <img src="__STATIC__/index/img/head/pc_logo.png" alt="">
                </a>
            </div>
            <div class="PC-click-location"> {if condition="!empty($cur_city)"}{$cur_city}{else /}选择城市{/if}
            </div>
        </div>
        <div>
            <!-- 蛋糕 PC-cake-here当前页面时固定class  -->
            {foreach name="category" item="v"}
            <div class="PC-cake ">
                <div>
                    <a href="{:url('GoodsList/goods_list')}?cate_id={$v.id}">
                        <div>
                            <!-- 黑色图标 -->
                            <img class="black " src="{$v.logo}" alt="" {if condition="$cur_category eq $v.id" } style="display:none;" {/if}>
                            <!-- 红色图标 -->
                            <img class="red" src="{$v.red_logo}" alt="">
                        </div>
                        <p>{$v.title}</p>
                    </a>
                </div>
                <div class="PC-cake-hover">
                    <div>
                        {foreach name="tui_goods" item="v1"} {if condition="$v1.cat_id eq $v.id"}
                        <a href="{:url('GoodsList/goods_detail')}?id={$v1.id}">
                            <img src="{$v1.logo}" width="50%;" alt="">
                            <p>{$v1.name}</p>
                        </a>
                        {/if} {/foreach}
                        <a href="{:url('GoodsList/goods_list')}?cate_id={$v.id}" class="PC-cake-hover-right">
                            <p>更多{$v.title}</p>
                        </a>
                    </div>
                </div>

            </div>
            {/foreach}


            <div class="PC-DengLu">
                {if condition="empty($realname)"}
                <div class="PC-enter">
                    {if condition="empty($realname)"}
                    <a href="{:url('Login/loginin')}">登录</a> / {else /}
                    <a href="{:url('User/index')}">{$realname}</a> / {/if}
                    <a href="{:url('Login/register')}">注册</a>
                </div>
                {/if} {if condition="!empty($realname)"}
                <div class="PC-esc">
                    <p>{$Think.session._user_uid_.realname}</p>
                    <div>
                        <p>
                            <a href="{:url('User/my_center')}">个人中心</a>
                        </p>
                        <p>
                            <a href="{:url('User/my_order')}">
                                我的订单
                            </a>
                        </p>
                        <p>
                            <a href="{:url('User/my_coupon')}">优惠券</a>
                        </p>
                        <p>
                            <a href="{:url('Login/logout')}">退出</a>
                        </p>
                    </div>
                </div>
                {/if}
                <div class="PC-car">
                    <a href="{:url('MyCart/my_cart')}">
                        <span class="iconfont icon-gouwuche"></span>
                        <span>{$cart_num}</span>
                    </a>
                </div>
            </div>

        </div>
    </div>
</div>